using bbv.DomainDrivenDesign.Interfaces;
using bbv.DomainDrivenDesign.Workspaces;
using O1.Social.Newsgator.Data;
using O1.Social.Newsgator.Domain;

namespace O1.Social.Newsgator.Repository.LinqToSql
{
    public class LinqToSqlWorkspaceProvider : IWorkspaceProvider
    {
        public IWorkspace Workspace
        {
            get
            {
                var dc = new NewsgatorDataContext(SiteConfigurationGlobals.NewsGatorConnectionstring);
                return new LinqToSqlWorkspace(dc);
            }
        }
    }
}